<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<style type="text/css">
			body{
				margin: 0;
				background-color: #fdd;
				min-width: 920px;
			}
			ul{
				list-style: none;
				padding: 0;
				margin: 0;
			}
			main{
				width: 80%;
				margin: 10rem auto;
			}
			.menu-list{	
				display: flex;
				align-items: center;
				text-align: center;
				height: 5rem;
				padding: 1rem;
				background-color: #fff;
			}
			.title{
				background-color: #f66;
				padding: 2rem;
				display: flex;
				text-align: center;
				align-items: center;
			}
			.title>span{
				width: 100%;
				font-size: 2rem;
				font-weight: bold;
				color: #fff;
			}
			.imgbox{
				width: 8%;
			}
			.img{
				display: inline-block;
				width:3rem;
				height: 3rem;
			}
			.item,.item>li{
				display: inline-block;
			}
			.item{
				width: 90%;
				text-align: left; /*避免样式居中*/
			}
			.item>li{
				padding: 1rem 2.5rem;
				font-size: 1.3rem;
			}
			.menu-list+.menu-list{
				margin-top: 0.5rem;
			}
		</style>
	</head>
	<body>
		<main>
			<div class="title">
				<span>泸州生活网</span>
			</div>
			<ul class="menu-lists">
				<?php foreach($lists as $list): ?>
				<li class="menu-list">
					<div class="imgbox">
						<i class="img" style="background: #fff url(<?=$list["bgurl"]?>) no-repeat center/cover;"></i>
					</div>
					<ul class="item">
						<?php foreach($list["item"] as $item ):?>
						<li><?=$item?></li>
						<?php endforeach; ?>
					</ul>
				</li>
				<?php endforeach;?>
			</ul>
		</main>
	</body>
</html>
